//
//  TRProductDetailViewController.h
//  WeiMiLan
//
//  Created by anan on 14/11/20.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TRProductDetailHeaderView.h"
#import "TRCommentTableViewCell.h"
#import "ALAssetsLibrary+CustomPhotoAlbum.h"
#import "LXActivity.h"
#import "TRWeixin.h"
#import "MBProgressHUD.h"
#import "QLRecordPlayer.h"
#import "TRBuyCarViewController.h"

@interface TRProductDetailViewController : TRBaseUIViewController<UITableViewDataSource,UITableViewDelegate,QLMaskNodataViewOnClickDelegate,LXActivityDelegate,UITextFieldDelegate,UIActionSheetDelegate,UIAlertViewDelegate>
{
    MJRefreshHeaderView *refreshHeaderView;
    MJRefreshFooterView *refreshFooterView;
}

@property (nonatomic,weak) IBOutlet UIImageView *imageViewFav;
@property (nonatomic,weak) IBOutlet UIView *viewGuide;
@property (strong,nonatomic) WeChatNavigationBar *weChatNavigationBar;
@property (nonatomic,strong) LXActivity *lxActivity;
@property (strong, nonatomic)TRWeixin * weixinView;

@property (nonatomic,strong) TRProductDetailHeaderView *productDetailHeaderView;
@property (nonatomic,weak) IBOutlet UITableView *tableView;
@property (nonatomic,weak) IBOutlet UIImageView *imageViewUserHead;
@property (nonatomic,weak) IBOutlet UIView *viewComment;
@property (nonatomic,weak) IBOutlet UIView *viewPlay;
@property (nonatomic,weak) IBOutlet UILabel *labelTLong;

//@property (nonatomic,weak) IBOutlet UIButton *buttonWechar;
//@property (nonatomic,weak) IBOutlet UIButton *buttonQQ;
//@property (nonatomic,weak) IBOutlet UIButton *buttonPhone;


@property (nonatomic,strong) NSMutableArray *contents;
@property (nonatomic,assign) int nextPage;
@property (nonatomic,assign) int currentPage;
@property (nonatomic,strong) NSMutableArray *images;
@property (nonatomic,weak) IBOutlet UITextField *textFieldContent;

@property (nonatomic,assign) BOOL toWeixin;
//保存建立特殊相册
@property (strong, atomic) ALAssetsLibrary * library;
@property (nonatomic,assign) CGRect rectViewComment;

@property (nonatomic,copy) NSString *productTypeId;
@property (nonatomic,copy) NSDictionary* productInfo;

@property (nonatomic,assign) int commentId;
@property (nonatomic,copy) NSDictionary* info;
-(void)shareToWeixin:(UIButton *)bt;

@end
